Repository navigation
fix(image): include WeCom CLI for notifications - #173
Conversation
|
LoopForge PR Review Bot
Checks performed (isolated worktree, no secrets/prod access):
Not run: No blocking issues found in the diff (Dockerfile WeCom CLI install step, Makefile/README/docs updates, Go toolchain bump). Documentation and |
|
Review: LGTM, OK to merge. What I checked:
Non-blocking suggestions:
|
|
LoopForge PR Review — head 结论:✅ 通过
|
Yanami-2K
left a comment
There was a problem hiding this comment.
对照 #156 核对过:Dockerfile 运行阶段固定安装 @wecom/[email protected] 并执行 wecom-cli --version、scripts/test-runtime-image.sh 增加版本检查、docs/deployment.md 补原生部署安装方式、THIRD_PARTY_NOTICES.md 补许可说明,issue 提出的修复点都覆盖了。但目前不能合入:
- 与 main 冲突(mergeableState=dirty):请先 rebase 到最新 main。
- Go 1.26.10 → 1.26.11 的升级超出 #156 范围(
go.mod、Dockerfile第 12 行 build 阶段镜像、Makefile、README.md、README.zh-CN.md)。同样的升级也出现在 #175 里,冲突很可能就是 main 已经单独升级过 Go 导致的。rebase 时请以 main 上的 Go 版本为准,把这部分改动从本 PR 中去掉,只保留 wecom-cli 相关改动;如果 main 仍是 1.26.10,建议单独提一个升级 PR,避免 #173 和 #175 重复修改同一组文件。 - 未在真实镜像里验证:描述说本地没有跑 Docker 构建。
Dockerfile里的&& wecom-cli --version在 arm64 构建时依赖@wecom/cli-linux-arm64通过 optionalDependencies 装上,rebase 后请确认 CI 或发布流水线里的双架构镜像构建能通过,并在描述里记录。
fee4fb2 to
bb7e2fc
Compare
|
双架构镜像验证已完成,结果和可点击的日志行已更新到 PR 描述:
本地 arm64 只读、无网络 smoke 通过;本机 amd64 模拟运行期的 Node
|
|
LoopForge PR Review — head Verdict: ✅ Pass
|
Yanami-2K
left a comment
There was a problem hiding this comment.
核对了 #156 的诉求:运行镜像在 Dockerfile 中固定安装 @wecom/[email protected],安装后立即执行 wecom-cli --version,scripts/test-runtime-image.sh 也补了同样的运行期检查,缺少对应架构二进制时构建或冒烟都会直接失败,正好覆盖 issue 里的问题。新增的 .github/workflows/image.yml 只在镜像相关文件变化时触发,push: false、permissions: contents: read,不涉及凭据,且本 head 上该检查已在 amd64/arm64 双架构构建成功,可作为本改动的验证。README 中英文、docs/deployment.md(原生部署需另装 CLI 与 CA 证书)和 THIRD_PARTY_NOTICES.md 的许可说明同步一致,CI 全部通过,可以合入。
本地实测通过在隔离 Docker 网络中,用同一个测试数据库和 Bot 对照运行
独立的 CodeBuddy 连通性测试使用 |
Keep the updated executor setup notes and the WeCom notification installation guidance.
Keep both the managed CLI updater notes and the WeCom installation guidance in the deployment guide.
Use the upstream conversation diagnostics fixture, which carries the same correction.
最新提交的代码评审和实测复测基于
|
Robert0622
left a comment
There was a problem hiding this comment.
代码评审通过。已验证此提交的实际 amd64 镜像、官方 WeCom CLI 启动、会话刷新和测试发送,以及需求交接的前端回归。实测结论与截图








Closes #156
What changed
官方平台镜像此前未包含
wecom-cli,导致企业微信通知无法启动。本 PR 在运行镜像中固定安装@wecom/[email protected],并在镜像构建和运行镜像检查时执行wecom-cli --version。同时补充原生部署安装方式、系统 CA 证书要求和第三方许可说明。已 rebase 到 main(
97b3cdc),保留 main 的 dsh、独立 Python 和dsh --version检查;重复的 Go 1.26.11 升级已由 main 提供,不再包含在本 PR 中。新增不发布镜像的双架构构建 CI,使用与发布流水线相同的 Buildx/QEMU 配置。Scope
Compatibility
镜像随下次发布生效;已有镜像需要更新。原生部署需要自行安装 CLI 和系统 CA 证书,企业微信通知仍需配置机器人凭据。npm 包提供 Linux x64 和 arm64 平台二进制。
Validation
双架构 CI 构建通过:GitHub Actions 的 Build linux/amd64 and linux/arm64 对 PR head
fb0d3c13ca4d942f4604a62a43fd21ca05533586的合并结果使用 Buildx + QEMU 构建linux/amd64,linux/arm64,作业成功(7m55s),未推送或发布镜像。wecom-cli 1.3.4。wecom-cli 1.3.4;该步骤在 arm64 镜像中安装 npm 包并实际运行 CLI,覆盖 optionalDependencies 缺失的风险。本地还针对 rebase 后的提交
bb7e2fc398e4ba0e04ced4bbf6ea4df9ea9a00e9分别构建完整镜像,确认安装@wecom/[email protected]和@wecom/[email protected]。arm64 的bash scripts/test-runtime-image.sh在只读、无网络容器中通过。amd64 镜像构建时版本检查及直接运行平台二进制通过,但本机模拟运行期 smoke 未通过:磁盘满导致 Docker Desktop 重启后 Node 启动器出现Bus error,未修改的node:22-bookwormamd64 基础镜像也复现;不能将此项记为通过。docker buildx build --check --platform linux/amd64,linux/arm64 .、bash -n scripts/test-runtime-image.sh、python3 scripts/check-public.py和git diff --check通过。上述 CI 是不发布的 PR 构建,不是正式发布流水线;尚未运行完整scripts/test-container.sh或真实企业微信通知发送(未配置机器人凭据)。